﻿@model IEnumerable<SAB.Domain.Publication.Editorial>
@if (ViewBag.pageIndex != null)
{
    <input type="hidden" name="pageIndex" id="PET_pageIndex" value="@ViewBag.pageIndex" />
}
else
{
    <input type="hidden" name="pageIndex" id="PET_pageIndex" value="1" />
}

<table class="table-responsive table table-striped" id="editorialTable">
    <tr>
        <th>Código</th>
        <th>Razón Social</th>
        <th>RUC</th>
        <th></th>
    </tr>
    @foreach (var editorial in Model)
    {
        <tr>
            <td>@editorial.Id</td>
            <td>@editorial.Company_Name</td>
            <td>@editorial.RUC</td>
            <td>
                <input type="radio" name="Editorial" />
            </td>
        </tr>
    }
</table>

<div class="col-md-12 col-md-offset-3 form-horizontal">
    <div class="form-group ">
        <div>
            <ul class="pagination">
                <li><a id="PET_btnFirst">Primero</a></li>
                <li><a id="PET_btnPrev">&laquo;</a></li>

                <li>
                    @if (ViewBag.pageIndex != null)
                    {
                        <span>@ViewBag.pageIndex</span>
                    }
                    else
                    {
                        <span>1</span>
                    }
                </li>
                <li><a id="PET_btnNext">&raquo;</a></li>
                <li><a id="PET_btnLast">Último</a></li>
            </ul>
        </div>
    </div>
</div>   